/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package PackageInstaller.MainUi;

import java.util.Hashtable;

/**
 *
 * @author wcss
 */
public class LanguageArrays 
{
    private static LanguageArrays data = new LanguageArrays();
    private Hashtable<String,String> engList = new Hashtable<String,String>();
    private Hashtable<String,String> cnList = new Hashtable<String,String>();
    
    public LanguageArrays()
    {
        //英文
        engList.put("001", "Sorry, the installer error, please download again!");
        engList.put("002", "Installing - ");
        engList.put("003", "Install the required:");
        engList.put("004", "Next");
        engList.put("005", "Exit");
        engList.put("006", "Version:");
        engList.put("007", "Really want to exit?");
        engList.put("008", "Source:");
        engList.put("009", "Dest:");
        engList.put("010", "Detail Information:");
        engList.put("011", "Package Name:");
        engList.put("012", "Homepage:");
        engList.put("013", "Maintainer:");
        engList.put("014", "The Root Partition Files:");
        engList.put("015", "The Home Partition Files:");
        engList.put("016", "Install");
        engList.put("017", "Finish");
        engList.put("018", "Copying Files To The Root Partition......");
        engList.put("019", "Copying Files To The Home Partition......");
        engList.put("020", "Running The Installation Script......");
        engList.put("021", "The Installation Is Complete!");
        engList.put("022", "The Error Output:");
        engList.put("023", "The Processing Results:");
        
        //中文
        cnList.put("001", "对不起，安装程序错误，请重新下载！");
        cnList.put("002", "正在安装 - ");
        cnList.put("003", "安装必读：");
        cnList.put("004", "下一步");
        cnList.put("005", "退出");
        cnList.put("006", "版本：");
        cnList.put("007", "真的要退出吗？");
        cnList.put("008", "源路径：");
        cnList.put("009", "目标路径：");
        cnList.put("010", "详细信息：");       
        cnList.put("011", "软件包名：");       
        cnList.put("012", "网址：");
        cnList.put("013", "维护者：");
        cnList.put("014", "根分区中文件：");
        cnList.put("015", "用户分区中文件：");
        cnList.put("016", "安装");
        cnList.put("017", "完成");
        cnList.put("018", "正在将文件复制到根分区......");
        cnList.put("019", "正在将文件复制到Home分区......");
        cnList.put("020", "正在运行安装脚本......");
        cnList.put("021", "安装完成！");
        cnList.put("022", "错误输出：");
        cnList.put("023", "执行结果：");
        
    }
    public static String getLanguageText(String language,String code)
    {
        String result = "";
        if (language.equals("english"))
        {
            return data.engList.get(code);
        }else if (language.equals("chinese"))
        {
            return data.cnList.get(code);
        }
        
        return result;
    }    
}
